From 12fc77ad98651b0d83ca2c59cc82981f22c8eb2a Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 19 Jun 2014 14:31:23 -0400 Subject: [PATCH] gdkwindow-wayland: Don't post CONFIGURE events for the same size The Wayland compositor is completely allowed to send us configure events for the same size, and this validly happens if we're changing states. Fizzle these out. --- gdk/wayland/gdkwindow-wayland.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index 8abfdd4116..a9a2dc6ff2 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -596,11 +596,11 @@ gdk_wayland_window_configure (GdkWindow *window, GdkDisplay *display; GdkEvent *event; + if (window->width == width && window->height == height) + return; + display = gdk_window_get_display (window); - /* TODO: Only generate a configure event if width/height/scale have actually - * changed? - */ event = gdk_event_new (GDK_CONFIGURE); event->configure.window = window; event->configure.send_event = FALSE; -- 2.30.2